from abc import ABC, abstractmethod  
class EmotionDetector(ABC): 
    @abstractmethod  
    def load(self) -> bool:  
        """ Loads the model from the disk.  
  
        Returns:  
            bool: Indication on if the loading was succeeded or not.  
        """         
        pass  
    @abstractmethod  
    def detect(self, image: 'np.ndarray') -> 'OrderedDict':  # 使用了正确的numpy类型注解，并添加了OrderedDict的导入  
        """Detects the emotions based on the given features.  
  
        Args:  
            image (numpy.ndarray): A numpy array representing the image.  
  
        Returns:  
            OrderedDict: The probabilities of each of the prototypic emotion, in format:  
                {'anger': value, 'contempt': value, [...]}  
        """          
        pass